using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace SHKurzy.Domain {
    
    
    public class OsobyNaKurzuMap : ClassMap<OsobyNaKurzu> {
        
        public OsobyNaKurzuMap() {
			Table("OsobyNaKurzu");
			LazyLoad();
			Id(x => x.ID).GeneratedBy.Identity().Column("ID");
			References(x => x.Kurz).Column("KurzID");
			References(x => x.Osoba).Column("OsobaID");
			Map(x => x.JeVedouci).Column("JeVedouci").Not.Nullable().Length(1);
			Map(x => x.Zaplaceno).Column("Zaplaceno").Length(8);
			Map(x => x.Poznamka).Column("Poznamka").Length(500);
        }
    }
}
